package car.aistar.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * (Reserve)实体类
 *
 * @author makejava
 * @since 2020-09-30 20:22:31
 */
public class Reserve implements Serializable {

    private static final long serialVersionUID = 193735271119831708L;
    /**
     * 预约表id
     */
    private Long id;
    /**
     * 预约的用户id
     */
    private Long uId;
    /**
     * 销售人员id
     */
    private Long sId;
    /**
     * 预约的车id
     */
    private Long resCarId;
    /**
     * 预约时间
     */
    private Date resTime;
    /**
     * 预约状态 0-预约中 1-预约成功 -2预约取消 -3订单完成
     */
    private Long resStatus;

    public Reserve() {
    }


    public Reserve(Long uId, Long sId, Long resCarId, Date resTime, Long resStatus) {
        this.uId = uId;
        this.sId = sId;
        this.resCarId = resCarId;
        this.resTime = resTime;
        this.resStatus = resStatus;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUId() {
        return uId;
    }

    public void setUId(Long uId) {
        this.uId = uId;
    }

    public Long getSId() {
        return sId;
    }

    public void setSId(Long sId) {
        this.sId = sId;
    }

    public Long getResCarId() {
        return resCarId;
    }

    public void setResCarId(Long resCarId) {
        this.resCarId = resCarId;
    }

    public Date getResTime() {
        return resTime;
    }

    public void setResTime(Date resTime) {
        this.resTime = resTime;
    }

    public Long getResStatus() {
        return resStatus;
    }

    public void setResStatus(Long resStatus) {
        this.resStatus = resStatus;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Reserve{");
        sb.append("id=").append(id);
        sb.append(", uId=").append(uId);
        sb.append(", sId=").append(sId);
        sb.append(", resCarId=").append(resCarId);
        sb.append(", resTime=").append(resTime);
        sb.append(", resStatus=").append(resStatus);
        sb.append('}');
        return sb.toString();
    }
}